package online.abor.day12_study.provider_consumer.baozi_plus;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Random;

@Data
@Accessors(chain = true)
public class Baozi {
    private String pi; // 皮
    private String xian; // 馅

    public static Baozi getInstance() {
        Baozi baozi = new Baozi();
        baozi.setPi(new String[]{"厚皮", "薄皮"}[new Random().nextInt(2)]);
        baozi.setXian(new String[]{"牛肉", "猪肉"}[new Random().nextInt(2)]);
        return baozi;
    }
}
